<?php echo $this->Html->link(__('Voltar'), '/projetos', array('class'=>'btn'))?>

<h2>Estatísticas do projeto</h2>

Total de Tarefas não iniciadas (<?php echo number_format((($totais[1])/(float)$total_tarefas)*100, 2, ',', '.')?>%)
<div class="progress progress-striped active progress-danger">
  <div class="bar" style="width: <?php echo (($totais[1])/(float)$total_tarefas)*100?>%;"></div>
</div>

Total de Tarefas iniciadas (<?php echo number_format((($total_tarefas-$totais[1])/(float)$total_tarefas)*100, 2, ',', '.')?>%)
<div class="progress progress-striped active">
  <div class="bar" style="width: <?php echo (($total_tarefas-$totais[1])/(float)$total_tarefas)*100?>%;"></div>
</div>

Total de Tarefas sendo desenvolvidas (<?php echo number_format((($total_tarefas-$totais[1]-$totais[6])/(float)$total_tarefas)*100, 2, ',', '.')?>%)
<div class="progress progress-striped active">
  <div class="bar" style="width: <?php echo (($total_tarefas-$totais[1]-$totais[6])/(float)$total_tarefas)*100?>%"></div>
</div>

Total de Tarefas em fase de testes (<?php echo number_format((($totais[3])/(float)$total_tarefas)*100, 2, ',', '.')?>%)
<div class="progress progress-striped active">
  <div class="bar" style="width: <?php echo (($totais[3])/(float)$total_tarefas)*100?>%;"></div>
</div>
Total de Tarefas aguardando resposta do cliente (<?php echo number_format((($totais[4])/(float)$total_tarefas)*100, 2, ',', '.')?>%)
<div class="progress progress-striped active">
  <div class="bar" style="width: <?php echo (($totais[4])/(float)$total_tarefas)*100?>%;"></div>
</div>
Total de Tarefas em desenvolvimento de Layout (<?php echo number_format((($totais[5])/(float)$total_tarefas)*100, 2, ',', '.')?>%)
<div class="progress progress-striped active">  
  <div class="bar" style="width: <?php echo (($totais[5])/(float)$total_tarefas)*100?>%;"></div>
</div>

Total de Tarefas prontas (<?php echo number_format((($totais[1])/(float)$total_tarefas)*100, 2, ',', '.')?>%)
<div class="progress progress-striped active progress-success">
 <div class="bar" style="width: <?php echo (($totais[6])/(float)$total_tarefas)*100?>%;"></div>
</div>
<?php //pr($totais); ?>